<script type="text/javascript">
$(document).ready(function(){
	$('.date-pick').datePicker({startDate:'1996.01.01'});

	$(document).ready(function(){
        $("#first").children("ul").children("li").each(function(){
             $(this).click(function(){
                var num = $(this).attr("lang");
                $("#first").children("ul").children("li").removeClass('cur');
                $(this).addClass('cur');
                $(".charts").hide();
                if(num==0){
                	$("#category_chart").show();
                	$("#search").show();
                }else if(num==1){
                	$("#search").hide();
                    $("#model_chart").show();
                }else{
                	$("#search").hide();
                	$("#code_chart").show();
                }
             })
            
        })
     $("#sub").click(function(){
             var first_time = $("#first_time").val();
             var second_time = $("#second_time").val();
             var ord = $("#ord").val();
             if(first_time==''){
                 alert('起始日期不能空');
                 return false;
             }
             if(second_time==''){
                 alert('截止日期不能空');
                 return false;
             }
             if(ord=='0'){
                 alert('请选择排列方式');
                 return false;
             }
         })
        
    })
})

</script>
<style>
  .sum{clear:both;}
  .sum li{list-style:none;float:left;width:150px;line-height:35px;height:35px;cursor:pointer;margin-bottom:5px;font-size:14px;}
  .sum2{clear:both;}
  .sum2 li{list-style:none;float:left;width:150px;line-height:15px;height:15px;cursor:pointer;margin-bottom:15px;font-size:12px;}

  .cur{color:red;font-weight:600;font-size:16px;}
dt{
    color: #333333;
    float: left;
    margin: 0;
    padding: 4px 0 0;
    text-align: right;
	width:80px;
	font-weight:600;
	font-size:14px;
}
dd{
	 margin-left: 10px;
      padding: 4px 0 4px 5px;
	line-height:25px;
	overflow:hidden;
}	
dl{clear:both;line-height:25px;}
</style>
<div id="center-column">
  <div class="sum"><ul><li  lang="0"><a  href="<?php echo  base_url();?>chart/index" >数据总量统计</a></li><li lang="1" ><a  href="<?php echo  base_url();?>chart/send_total" >资料发放统计</a></li><li lang="2" ><a class="cur"  href="<?php echo  base_url();?>chart/update_total" >资料更新统计</a></li><li lang="3"><a href="<?php echo  base_url();?>chart/inventory_total" >库存统计</a></ul></div>
  <!--<div class="sum2" id="first"><ul> <li  class="cur" lang="0">按时间段</li><li lang="2" class="cur"  >按发放单位</li></ul></div>   -->
		  <!-- <?php echo form_open('chart/update_total',array('id'=>'index_form'));?> 
		    <dl id="search">
		        <dt>起始日期：</dt>
		        <dd><input name='first_time' id='first_time' class='date-pick' value="<?php echo $firsttime;?>" ><span style="float:left;">
		            &nbsp;&nbsp;截止日期：</span><input name='second_time' id='second_time' class='date-pick' value="<?php echo $secondtime;?>"  >
		            <span style="float:left;margin-left:100px;">
		            &nbsp;&nbsp;排列方式：</span>
		            <select name="ord" id="ord">
		                 <option value="0">选择方式</option>
		                 <option value="1">年</option>
		                 <option value="2">月</option>
		                 <option value="3">周</option>
		            </select>
		            &nbsp;&nbsp;<input type="submit" value="提交" id="sub"/></dd>
		    </dl>    
		   </form>    -->  
        <div style="height:470px;clear:both;overflow:auto;margin-bottom:10px;" id="category_chart" class="charts">
                  <table class="listing" cellpadding="0" cellspacing="0">
                     <tr><th width="10%">型号</th><th>资料种类数量</th><th>需要更新数量</th></tr>
                     <tr><td><?php echo $modes['mod_count'];?></td><td><?php echo $modes['cate_count'];?></td><td><?php echo $modes['invalid'];?></td></tr>
                  </table>
              
        </div>
     
		</div>
	</div>
	<div id="footer"></div>
</div>



</body>
</html>
